package com.smitish.vueblog.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.smitish.vueblog.entity.Comment;
import com.smitish.vueblog.mapper.CommentMapper;
import com.smitish.vueblog.service.CommentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.smitish.vueblog.vo.CommentUserVO;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author Smitish
 * @since 2020-12-02
 */
@Service
public class CommentServiceImpl extends ServiceImpl<CommentMapper, Comment> implements CommentService {


    @Override
    public Page<CommentUserVO> getCommentUser(Page<CommentUserVO> page, Long id) {
        return page.setRecords(this.baseMapper.getCommentUser(page, id));
    }
}
